package fr.insta.webview.object;

import java.util.Date;
import javax.swing.ImageIcon;

/**
 * <p>Bookmark class.</p>
 *
 * @author Maarek
 * @version $Id: $Id
 */
public class Bookmark implements IWebObject
{
	
	String link;
	String pageTitle;
	ImageIcon icon;
	
	Date date;
	
	/**
	 * <p>Constructor for Bookmark.</p>
	 *
	 * @param _url a {@link java.lang.String} object.
	 * @param _title a {@link java.lang.String} object.
	 */
	public Bookmark(String _url, String _title)
	{
		this.link = _url;
		this.pageTitle = _title;
		this.date = new Date();
	}

	/** {@inheritDoc} */
	@Override
	public ImageIcon getIcon()
	{
		return icon;
	}

	/** {@inheritDoc} */
	@Override
	public String getTitle()
	{
		return pageTitle;
	}

	/** {@inheritDoc} */
	@Override
	public String getUrl()
	{
		return link;
	}

	/** {@inheritDoc} */
	@Override
	public void setIcon(ImageIcon _icon)
	{
		this.icon = _icon;
	}

	/** {@inheritDoc} */
	@Override
	public void setTitle(String _title)
	{
		this.pageTitle = _title;
	}

	/** {@inheritDoc} */
	@Override
	public void setUrl(String _url)
	{
		this.link = _url;
	}

	/** {@inheritDoc} */
	@Override
	public Date getDate()
	{
		return date;
	}

	/** {@inheritDoc} */
	@Override
	public void setDate(Date _date)
	{
		this.date = _date;
	}
}
